import java.awt.event.KeyEvent;

public enum Keys {
		ERROR     ((byte)0, -1),
        UP        ((byte)0x01, KeyEvent.VK_UP),
        RIGHT     ((byte)0x02, KeyEvent.VK_RIGHT),
        DOWN      ((byte)0x04, KeyEvent.VK_DOWN),
        LEFT      ((byte)0x08, KeyEvent.VK_LEFT),
        D_UR      ((byte)0x03, 0),
        D_DR      ((byte)0x06, 0),
        D_DL      ((byte)0x0c, 0),
        D_UL      ((byte)0x09, 0),
        BUTTON1   ((byte)0x10, KeyEvent.VK_Z),
        BUTTON2   ((byte)0x20, KeyEvent.VK_X),
        BUTTON3   ((byte)0x40, KeyEvent.VK_C),
        BUTTON4   ((byte)0x80, KeyEvent.VK_A);


        public final byte key;
        public final int code;
        Keys(byte b, int i) {
                key = b;
                code = i;
        }
}